package com.ruoyi.system.service.zhaungxiuservice.shopService.impl;

import com.ruoyi.system.domain.zhuangxiumain.shopMain.ProductLabel;
import com.ruoyi.system.mapper.zhuangxiumapper.shopMapper.ProductLabelMapper;
import com.ruoyi.system.service.zhaungxiuservice.shopService.ProductLabelService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Date;
import java.util.List;
@Service
public class ProductLabelServiceImpl implements ProductLabelService {

    @Autowired(required = false)
    private ProductLabelMapper productLabelMapper;

    @Override
    public ProductLabel selectProductLabelById(Integer labelId) {
        return productLabelMapper.selectProductLabelById(labelId);
    }

    @Override
    public List<ProductLabel> selectProductLabelList(Integer productId) {
        return productLabelMapper.selectProductLabelList(productId);
    }

    @Override
    public int insertProductLabel(ProductLabel productLabel) {
        return productLabelMapper.insertProductLabel(productLabel);
    }

    @Override
    public int updateProductLabel(ProductLabel productLabel) {
        return productLabelMapper.updateProductLabel(productLabel);
    }

    @Override
    public int deleteProductLabelByIds(Integer[] labelId) {
        return productLabelMapper.deleteProductLabelByIds(labelId);
    }
}
